<extend name="Public/base" />

<block name="body">
    <div class="main-title" style="padding-bottom: 10px;">
        <h2>录入盘点信息</h2>
    </div>
    <div class="row" ng-controller="StorageInCtrl" ng-init="init()">
        <form action="{:U('checkflow')}" method='post' class="form-horizontal">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-body" style="padding-bottom: 0px;padding-top: 0px;">
                        <div class="form-item cf">
                                <div style="border: #000 1px solid;margin-top: 5px;margin-bottom: 5px;" class='data-table table-striped '>
                                    <table  id="tbodyspec">
                                        <thead>
                                        <tr>
                                            <th scope="col" width="20%">商品</th>
                                            <th scope="col">批次</th>
                                            <th scope="col">实际盘点数量</th>
                                        </tr>
                                        </thead>
                                        <tbody id="tbodyspec_a">
                                            <tr>
                                                <td class="change">
                                                    <select select2 style="height: 30px; width:200px;" ng-change="checkselect(checkbin)" name="BIN" ng-model="checkbin">
                                                        <option value="">请选择...</option>
                                                        <option ng-repeat="p in product" value="{{p.BIN}}" >{{p.pname}}({{p.spec}})</option>
                                                    </select>
                                                </td>
                                                <td class="change">
                                                    <select select2 style="height: 30px; width:220px;" ng-change="checkbatchselect(checkbatch)" name="batch" ng-model="checkbatch">
                                                        <option value="">请选择...</option>
                                                        <option ng-repeat="b in batch" value="{{b.batch}}" >{{b.batch}}({{b.cnt}})</option>
                                                    </select>
                                                </td>
                                                <td><input type="tel" name="aftercnt" class="form-control input-3x" /></td>
                                            </tr>
                                        <!--读取商品信息-->
                                        </tbody>
                                    </table>
                                </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-md-12">
                <button type="submit" class="btn confirm btn-danger">保 存</button>
                <a  class="btn btn-primary" id="fh" onclick="javascript:history.back(-1); return false;">返 回</a>
            </div>
        </form>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Subpro/checkinfolist')}');
        //select2-drop select2-with-searchbox select2-drop-active select2-drop-above
        //$(“[class='good list Card']“)
    </script>
</block>
